package br.com.dev.tcc.model;

import java.util.List;

import android.content.Context;
import br.com.dev.tcc.bean.Apolice;
import br.com.dev.tcc.database.DatabaseHelper;
import br.com.dev.tcc.database.dao.ApoliceDAO;

public class ListaPreferenciasModel {

	private DatabaseHelper dbhelper;

	public ListaPreferenciasModel(Context ctx) {

		this.dbhelper = new DatabaseHelper(ctx);
	}

	public List<Apolice> getListApolices() {

		ApoliceDAO dao = new ApoliceDAO(dbhelper);
		return dao.lista();
	}
}
